﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZX.OA.DAL;
using ZX.OA.Model;
namespace ZX.OA.BLL
{
 public   class MeetingRoomBll
    {
     /// <summary>
     /// 调用DAL层
     /// </summary>
     MeetingRoomDal dal = new MeetingRoomDal();

     /// <summary>
     /// 会议室列表的显示
     /// </summary>
     /// <returns></returns>
     public List<MeetingRoomInfo> Show_MeetingRoomInfo()
     {
         return dal.Show_MeetingRoomInfo();
     }

     /// <summary>
     /// 添加会议室信息
     /// </summary>
     /// <param name="id"></param>
     /// <returns></returns>
     public int Add_MeetingRoomInfo(MeetingRoomInfo room)
     {

         return dal.Add_MeetingRoomInfo(room);
     }
     /// <summary>
     /// 显示会议室详情
     /// </summary>
     /// <param name="id"></param>
     /// <returns></returns>
     public MeetingRoomInfo Upd_MeetingRoomInfo(int id)
     {
         return dal.Upd_MeetingRoomInfo(id);
     }
     /// <summary>
     /// 撤销会议室信息
     /// </summary>
     /// <param name="id"></param>
     /// <returns></returns>
     public int Del_MeetingRoomInfo(int id)
     {

         return dal.Del_MeetingRoomInfo(id);

     }
     /// <summary>
     /// 查询会议室信息
     /// </summary>
     /// <param name="MeetingRoomName">会议室名称</param>
     /// <returns></returns>
     public List<MeetingRoomInfo> Sel_MeetingRoomInfo(string MeetingRoomName)
     {
         return dal.Sel_MeetingRoomInfo(MeetingRoomName);
     }

    }
}
